<template>
    <div>
        <el-row>
            <el-col  :offset="6" :span="11">
                <el-menu default-active="1" background-color="" class="el-menu-demo" mode="horizontal" >
                    <el-menu-item index="1" @click="menu('follow_user')">关注的人动态</el-menu-item>
                    <el-menu-item index="2" @click="menu('follow_topic')">关注的话题动态</el-menu-item>
                </el-menu>
                <router-view></router-view>
            </el-col>
        </el-row>    
    </div>
</template>

<script>
export default {
    name: 'Follow',

    data() {
        return {
          
        };
    },

    mounted() {
            this.$router.push({
            name:'follow_user',
        })
    },
    methods: {
         menu(menu){
            this.$router.push({
                name:menu
            })
        }
    },
};
</script>

<style  scoped>

</style>